// 存放 成绩接口
import request from '@/api/request'

//成绩录入

//入学成绩录入 api
export const req_entry_exam = (arg)=> request({
    method:'post',
    url:'/entry_exam',
    arg,
    headerType:'form'
})
//期中成绩录入 api
export const req_mid_exam = (arg)=>request({
    method:'post',
    url:'/mid_exam',
    arg,
    headerType:'form'
})
//期末成绩录入 api
export const req_end_exam = (arg)=>request({
    method:'post',
    url:'/end_exam',
    arg,
    headerType:'form'
})


//成绩查询
//入学成绩查询 api
export const req_find_enter  = (id)=> request({
    method:'get',
    url:`/search_entry/${id}`,
    arg:{},
    headerType:''
})

//期中成绩查询
export const req_find_mid  = (id)=> request({
    method:'get',
    url:'/search_mid',
    arg:{
        stu_id:id
    },
    headerType:''
})

//期末成绩查询
export const req_find_end  = (id)=> request({
    method:'get',
    url:`/search_end/${id}`,
    arg:{},
    headerType:''
})